#include<iostream>
#include<cmath>
using namespace std;
const int devide(60);
int main ()
{   
    double degree;
    double arc;
    double secondsOfArc;
    cout << "Enter a latitude in degrees, minutes, and seconds: " << endl;
    cout << "First, enter the degree: " ;
    cin >> degree;
    cout << "Next, enter the minutes of arc: ";
    cin >> arc;
    cout << "Finally, enter the seconds of arc: ";
    cin >> secondsOfArc;
    cout << degree << " degreem, " << arc << " minutes, " << secondsOfArc << " seconds = " << degree + arc / devide + secondsOfArc / devide /devide << " degrees";
    return 0;
}